package com.app.designpatternslearn.behavior.statepattern.code

class StopState(context: Context): State(context) {

    private val name: String = "StopState"

    override fun doAction() {
        println("StopState ----> doAction")
        context.state = this
    }

    override fun toString(): String {
        return "StopState(name='$name')"
    }


}